package sctu.edu.java.year2016.team05.lizixin.day20160605.LianXi2;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

/**
 * Created by home on 2016/6/5.
 */
public class Example {
    public void zero(){
        try{int x=100;
            int s=0;
            int z=x/s;
            System.out.println("商是："+z);


        }catch (Exception e){
            e.printStackTrace();
            System.out.println("getMessage方法" + e.getMessage());
            System.out.println("用getLocalizedMessage"+e.getLocalizedMessage());
            System.out.println(e.toString());
        }
    }

    public static void main(String[] args) {
        Example D=new Example();
        D.zero();
    }
}
